class BootStrap {

     def init = { servletContext ->
        new templar.Menu(name:'_root').addToChildren(
            new templar.Menu(name:'Menu 1')
                .addToChildren(
                    new templar.Menu(name:'Menu 1 1')
                        .addToChildren(new templar.Menu(name:'Menu 1 1 1',controller:'demo',action:'menu1',tooltip:'menu 1'))
                        .addToChildren(new templar.Menu(name:'Menu 1 1 2',controller:'demo',action:'menu1',tooltip:'menu 1'))
                        .addToChildren(new templar.Menu(name:'Menu 1 1 3',controller:'demo',action:'menu1',tooltip:'menu 1'))
            )
            .addToChildren(
                new templar.Menu(name:'Menu 1 2')
                    .addToChildren(new templar.Menu(name:'Menu 1 2 1',controller:'demo',action:'menu1',tooltip:'menu 1'))
            )
            .addToChildren(
                new templar.Menu(name:'Menu 1 3')
                    .addToChildren(new templar.Menu(name:'Menu 1 3 1',controller:'demo',action:'menu1',tooltip:'menu 1'))
                    .addToChildren(new templar.Menu(name:'Menu 1 3 2',controller:'demo',action:'menu1',tooltip:'menu 1'))
            )
            .addToChildren(
                new templar.Menu(name:'Menu 1 4',controller:'demo',action:'menu1',tooltip:'menu 1')
            )
            .addToChildren(
                new templar.Menu(name:'Menu 1 5',controller:'demo',action:'menu1',tooltip:'menu 1')
            )
        ).addToChildren(
            new templar.Menu(name:'Menu 2').addToChildren(
                new templar.Menu(name:'Menu 2 1')
                    .addToChildren(new templar.Menu(name:'Menu 2 1 1',controller:'demo',action:'menu2',tooltip:'menu 2'))
                    .addToChildren(new templar.Menu(name:'Menu 2 1 2',controller:'demo',action:'menu2',tooltip:'menu 2'))
            )
            .addToChildren(
                new templar.Menu(name:'Menu 2 2',controller:'demo',action:'menu2',tooltip:'menu 2')
            )
            .addToChildren(
                new templar.Menu(name:'Menu 2 3',controller:'demo',action:'menu2',tooltip:'menu 2')
            )
            .addToChildren(
                new templar.Menu(name:'Menu 2 4',controller:'demo',action:'menu2',tooltip:'menu 2')
            )
            .addToChildren(
                new templar.Menu(name:'Menu 2 5')
                    .addToChildren(new templar.Menu(name:'Menu 2 5 1',controller:'demo',action:'menu2',tooltip:'menu 2'))
            )
        ).addToChildren(
            new templar.Menu(name:'Menu 3',controller:'demo',action:'menu3',tooltip:'menu 3')
        ).addToChildren(
            new templar.Menu(name:'Menu 4').addToChildren(
                new templar.Menu(name:'Menu 4 1',controller:'demo',action:'menu4',tooltip:'menu 4')
            )
            .addToChildren(
                new templar.Menu(name:'Menu 4 2')
                    .addToChildren(new templar.Menu(name:'Menu 4 2 1',controller:'demo',action:'menu4',tooltip:'menu 4'))
            )
            .addToChildren(
                new templar.Menu(name:'Menu 4 3',controller:'demo',action:'menu4',tooltip:'menu 4')
            )
        ).save()
     }
     def destroy = {
     }
} 